@import './fonts/iconfont.css';

.searchbox {
  position: absolute;
  display: flex;
  width: 320px;
  height: 45px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  .logo {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
  }
  .iptbox {
    position: absolute;
    top: 0;
    left: 50px;
    box-sizing: border-box;
    width: 265px;
    height: 45px;
    border-radius: 2px;
  }
  .searchipt {
    position: absolute;
    top: 12.5px;
    left: 0;
    box-sizing: border-box;
    width: 219px;
    height: 20px;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.5px;
    text-indent: 2px;
    border: none;
    &:focus {
      outline: none;
    }
  }
  .searchbtn {
    position: absolute;
    top: 0;
    right: 0;
    box-sizing: border-box;
    width: 45px;
    height: 45px;
    .searchIcon {
      position: absolute;
      top: 8.5px;
      right: 12px;
      font-size: 19px;
      &:hover {
        color: #1890ff;
        cursor: pointer;
      }
    }
    .iconLoading {
      position: absolute;
      top: 8.5px;
      right: 12px;
      color: #1890ff;
      font-size: 22px;
      animation: roll 1s infinite;
    }
  }
  .searchList {
    position: absolute;
    top: 50px;
    min-width: 320px;
    max-height: 360px;
    margin-top: -5px;
    background-color: #fff;
    .searchItem {
      height: 32px;
      padding: 0 10px;
      overflow: hidden;
      color: #404040;
      font-size: 13px;
      line-height: 32px;
      white-space: nowrap;
      background-color: #fff;
      background-size: 40px;
      cursor: pointer;
      .searchDistrict {
        margin-right: 5px;
        margin-left: 15px;
        color: #999;
        font-size: 12px;
      }
      &:hover {
        background-color: #eee;
      }
    }
    .pageButton {
      padding: 10px 10px;
      color: #404040;
      text-align: center;
      background-color: #fff;
      button {
        margin-right: 5px;
        background-color: #fff;
        border: 1px solid #1890ff;
        border-radius: 5px;
        &:hover {
          cursor: pointer;
        }
        &[disabled] {
          color: #999;
          border-color: #999;
          cursor: not-allowed;
        }
      }
    }
  }
}

@keyframes roll {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes roll /* Safari and Chrome */ {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
